package org.xb.BeverageTemplate;

/**
 * @Author
 * @Description
 * @Date created in 16:06 2023/12/8
 */
class Coffee extends BeverageTemplate {
    @Override
    protected void brew() {
        System.out.println("Dripping coffee through filter");
    }

    @Override
    protected void addCondiments() {
        System.out.println("Adding sugar and milk");
    }

    // 覆盖钩子方法以改变行为
    @Override
    protected void hook() {
        System.out.println("Adding extra flavor");
    }
}
